import { createApp } from 'vue'
import router from './router';
import './style.css'
import App from './App.vue'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'
import pinia from './stores';
import './permission'
import Tabbar from '@/components/Tabbar/index.vue'
import HomeGoodsList from './components/home-goods-list/index.vue'
import HomeGoodsItem from './components/home-goods-item/index.vue'
import SwiperHome from '@/components/swiper-home/index.vue'
import imgLazy from './hooks/imgLazy';
import LoginHeader from '@/components/LoginHeader/index.vue'

const app = createApp(App)
app.component('HomeGoodsList', HomeGoodsList)
app.component('HomeGoodsItem', HomeGoodsItem)
app.component('Tabbar', Tabbar)
app.component('SwiperHome', SwiperHome)
app.component('LoginHeader', LoginHeader)
app.use(Vant)

app.use(pinia)
app.use(router)

app.use(imgLazy)
app.mount('#app')


